package com.fs.ibox.dao.impl;

import com.fs.ibox.dao.CarouselDao;
import com.fs.ibox.pojo.Carousel;
import com.fs.ibox.util.JDBCUtil;

import java.util.List;

/**
 * Author:HOU
 * date:2022/11/16  17:00
 * 案例:
 **/
public class CarouselDaoimpl implements CarouselDao {
    @Override
    public List<Carousel> queryAll() {
        String sql="SELECT * FROM tb_carousel";
        List<Carousel> carousels = JDBCUtil.executeQuery(sql, Carousel.class);

        return carousels;
    }
}
